package org.csu.mypetstore.commonResponse;

import lombok.Getter;

@Getter
//枚举
public enum ResponseCode {
//0表示成功 1表示失败，方便维护
    SUCCESS(1,"SUCCESS"),
    ERROR(0,"ERROR");


    private final int code;
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
